package com.example.demoweb.entity;

import java.io.Serializable;

public class StreamData<T> {
	public Header header;
	public Body<T> body;
	public String sign;
	
	public class Header{
		private String terminal;
		private String deviced;
		private String deviceDescription;
		private String version;
		private String message;
		private String timestamp;
		private String uuid;
		public String getTerminal() {
			return terminal;
		}
		public void setTerminal(String terminal) {
			this.terminal = terminal;
		}

		public String getDeviced() {
			return deviced;
		}
		public void setDeviced(String deviced) {
			this.deviced = deviced;
		}
		public String getDeviceDescription() {
			return deviceDescription;
		}
		public void setDeviceDescription(String deviceDescription) {
			this.deviceDescription = deviceDescription;
		}
		public String getVersion() {
			return version;
		}
		public void setVersion(String version) {
			this.version = version;
		}

		
		public String getMessage() {
			return message;
		}
		public void setMessage(String message) {
			this.message = message;
		}
		public String getTimestamp() {
			return timestamp;
		}
		public void setTimestamp(String timestamp) {
			this.timestamp = timestamp;
		}
		public String getUuid() {
			return uuid;
		}
		public void setUuid(String uuid) {
			this.uuid = uuid;
		}
		
	}
	public class Body<T>{
		private String optionId;
		private String cityId;
		private String region;
		//private String netpoint;
		private String userId;
		private String tel;
		private String transactionType;
		private T transactionData;
		public String getOptionId() {
			return optionId;
		}
		public void setOptionId(String optionId) {
			this.optionId = optionId;
		}
		public String getCityId() {
			return cityId;
		}
		public void setCityId(String cityId) {
			this.cityId = cityId;
		}
		public String getRegion() {
			return region;
		}
		public void setRegion(String region) {
			this.region = region;
		}
		/*public String getNetpoint() {
			return netpoint;
		}
		public void setNetpoint(String netpoint) {
			this.netpoint = netpoint;
		}*/
		public String getUserId() {
			return userId;
		}
		public void setUserId(String userId) {
			this.userId = userId;
		}
		public String getTel() {
			return tel;
		}
		public void setTel(String tel) {
			this.tel = tel;
		}
		public String getTransactionType() {
			return transactionType;
		}
		public void setTransactionType(String transactionType) {
			this.transactionType = transactionType;
		}
		public T getTransactionData() {
			return transactionData;
		}
		public void setTransactionData(T transactionData) {
			this.transactionData = transactionData;
		}
		
	}
}
